package com.example.statisticsservice.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.math.BigDecimal;

@Component
@FeignClient("service-ordersManage")
public interface OrdersClient {
    @GetMapping("/ordersservice/ordermanage/getTotalPayAmount/{date}")
    BigDecimal getTotalPayAmount(@PathVariable("date") String date);
    @GetMapping("/ordersservice/ordermanage/getTotalNum/{date}")
    int getTotalNum(@PathVariable("date") String date);
}
